package com.zsjt.yysapi.core.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 信息
 * </p>
 *
 * @author zsq
 * @since 2021-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Info对象", description="信息")
public class Info implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "省")
    private Long provinceId;

    @ApiModelProperty(value = "市")
    private Long cityId;

    @ApiModelProperty(value = "区")
    private Long districtId;

    @ApiModelProperty(value = "乡镇/街道")
    private Long townshipId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "红包")
    private Boolean redPacket;

    @ApiModelProperty(value = "红包数量")
    private Integer redPacketNumber;

    @ApiModelProperty(value = "红包金额")
    private BigDecimal redPacketAmount;

    @ApiModelProperty(value = "支付方式")
    private Integer payment;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "数据更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Boolean delFlag;


}
